<template>
	<view class="uni_box home">
		<navbar title='违约金计算'>
		</navbar>
		<view class="content">
			<view class="antwo">
				<view class="anlist">
					<text class="antit">起止日期</text>
					<view class="rcont">
						<text class="nei">2022-03-05 至 2023-03-05</text>
						<image class="ricon" src="/static/img/ricon.png"></image>
					</view>
					<!-- <u-input v-model="value" type="text" :border="false" placeholder="请输入"/> -->
				</view>
				<view class="anlist">
					<text class="antit">一年天数</text>
					<view class="rcont">
						<u-input :input-align="inputalign" v-model="tian" type="text" :border="false" placeholder="请输入"/>
						<image class="ricon" src="/static/img/ricon.png"></image>
					</view>
				</view>
				<view class="anlist">
					<text class="antit">利率</text>
					<view class="rcont">
						<u-input :input-align="inputalign" v-model="value" type="text" :border="false" placeholder="请输入"/>
						<image class="ricon" src="/static/img/ricon.png"></image>
					</view>
				</view>
				<view class="anlist">
					<text class="antit">倍率</text>
					<view class="rcont">
						<u-input :input-align="inputalign" v-model="value" type="text" :border="false" placeholder="请输入"/>
						<image class="ricon" src="/static/img/ricon.png"></image>
					</view>
				</view>
				<view class="anlist">
					<text class="antit">本金</text>
					<view class="rcont">
						<view class="benjin">
							<u-input :input-align="inputalign" v-model="tian" type="text" :border="false" placeholder="请输入"/>
						</view>
						<text class="danwei">元</text>
					</view>
				</view>
				<view class="anlist">
					<text class="yibai">壹佰元整</text>
				</view>
				<view class="anlist">
					<text class="antit">利息合计</text>
					<view class="rcont">
						<text class="nei price">2.04</text>
					</view>
				</view>
				<view class="anlist">
					<text class="antit">本息合计</text>
					<view class="rcont">
						<text class="nei price">2.04</text>
					</view>
				</view>
			</view>


			<view class="botview">
				<view class="botbtn" @click="getedit">计算</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{}],
				value:'',
				tian:365,
				inputalign:'right'
			}
		},
		onLoad() {
			this.getuserinfo()
		},
		onShow() {
		},
		methods: {
			getedit(){
				this.navrouter("/pages/TPage/AnZixunEdit");
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #F5F5F5;
	}
	.content{
		background-color: #F5F5F5;
		padding-bottom: 130rpx;

		.matit{
			font-family: PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #333333;
			display: block;
			margin: 40rpx 30rpx;
		}
		.nodata{
			margin: 130rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			.img_kztz{
				width: 540rpx;
				height: 440rpx;
				margin-bottom: 10rpx;
			}
			text{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #999999;
			}
		}
		.antwo{
			background: #FFFFFF;
			border-radius: 20rpx;
			margin: 20rpx 30rpx 0;
			padding: 15rpx 30rpx;
			display: flex;
			flex-direction: column;
			.anlist{
				display: flex;
				flex-direction: row;
				align-items: center;
				padding: 25rpx 0;
				border-bottom: 1rpx solid #EEEEEE;
				.antit{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #111111;
					display: inline-block;
					margin-right: 20rpx;
				}
			}
			.anlist:last-child{
				border-bottom: none;
			}
			.rcont{
				display: flex;
				align-items: center;
				justify-content:flex-end;
				flex: 1;
				
			}
			.nei{
				font-family: PingFang SC;
				font-weight: 400;
				font-size: 28rpx;
				color: #999999;
			}
			.ricon{
				margin-left: 15rpx;
				width: 24rpx;
				height: 24rpx;
			}
			.benjin{
				background: #F5F5F5;
				border-radius: 5rpx;
				padding: 0 20rpx;
			}
			/deep/.uni-input-input {
				text-align: right;
			}
			.neiview{
				flex-direction: column;
				align-items: flex-start;
				border-bottom: none;
				
			}
			.wenben{
				height: 200rpx;
				background: #F5F5F5;
				border-radius: 20rpx;
				padding: 30rpx;
				width: 100%;
				margin-top: 30rpx;
			}
			.yibai{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 36rpx;
				color: #FF1515;
			}
			.danwei{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #333333;
				display: inline-block;
				margin-left: 30rpx;
			}
			.price{
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 36rpx;
				color: #FF1515;
			}

		}

		.botview{
			position: fixed;
			width: 100%;
			height: 120rpx;
			background-color: #fff;
			bottom: 0;
			display: flex;
			align-items: center;
			justify-content: center;
			.botbtn{
				height: 88rpx;
				background: #3E65E5;
				border-radius: 20rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 32rpx;
				color: #FFFFFF;
				width: 94%;
			}
		}
	}
</style>
